public class Test1 {
    public static void main(String[] args) {
    String result = "1";
    int i = 3;
    boolean flag;
    while (i<= 100) {
        flag = true;
        int j = 2;
        while (j<i) {
            if (i % j == 0) {
                flag = false;
                break;
            } else {
                j += 2;
            }
        }
        if (flag) {
            result = result + "," + i;
        }
        i+=2;
    }
    System.out.println("100以内所有的奇数：" + result);
}
}

